def log(fun):
    def wrapper(*args, **kwargs):
        print("方法调用前")
        result = fun(*args, **kwargs)
        print("方法调用后")
        return result

    return wrapper


@log
def hello():
    print("Hello,World")


if __name__ == '__main__':
    hello()